import { TableColumn } from "~/utils/types"
import PaginationTable from "@admin/entity/base/PaginationTable"
import DictData from "./DictData"
import Selection from "@admin/entity/base/Selection"
import Index from "@admin/entity/base/Index"
import Operation from "@admin/entity/base/Operation"
import TableIndex from "@admin/entity/base/TableIndex"
import TableOperation from "@admin/entity/base/TableOpertation"
import TableSelection from "@admin/entity/base/TableSelection"
export default class DictDataTable extends PaginationTable<DictData> implements Selection<DictData>, Index, Operation {
    index: TableIndex = {
        label: "序号",
        width: 80
    }
    operation: TableOperation = {
        label: "操作",
        width: 100
    }
    selection: TableSelection = {
    }
    selectedData: DictData[] = []
    columns: TableColumn<DictData>[] = [
        {
            prop: 'dictLabel',
            label: '字典标签'
        },
        {
            prop: 'dictValue',
            label: '字典键值'
        },
        {
            prop: 'dictSort',
            label: '字典排序'
        },
        {
            prop: 'status',
            label: '状态',
            dict: 'sys_normal_disable',
            tags: [{ value: '0', type: 'success' }, { value: '1', type: 'danger' }]
        },
        {
            prop: 'remark',
            label: '备注'
        }
    ]
}